package cn.iune.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import cn.iune.web.security.filters.TestFilter;

//@Configuration
public class FilterConfig {

	
	@Bean
	public FilterRegistrationBean<TestFilter> testFilter() {
		FilterRegistrationBean<TestFilter> bean = new FilterRegistrationBean<TestFilter>(new TestFilter());
//		bean.addUrlPatterns(new String[] {"*.do", "*.jsp"});
		bean.addUrlPatterns("/filter/*");
		return bean;
	}
	


}
